import { VNode, VNodeRef } from 'vue';

const useElementSize = (el: VNodeRef) => {
  const resizeObserver = new ResizeObserver((entries) => {
    for (let entry of entries) {
      // 获取当前元素的大小
      const { width, height } = entry.contentRect;
    }
  });
};
